package com.tbit.main.service.impl;

/**
 * @author LMY
 * @create 2021-11-03 11:11
 */
//@Configuration
public class ThreadPoolConfigOld {
   /* @Bean("threadPoolTaskExecutor")
    public ThreadPoolTaskExecutor threadPoolTaskExecutor(){
        ThreadPoolTaskExecutor threadPoolTaskExecutor=new ThreadPoolTaskExecutor();

        *//**线程池的基本大小*//*
        threadPoolTaskExecutor.setCorePoolSize(4);
        *//**线程池维护线程所允许的空闲时间*//*
        threadPoolTaskExecutor.setKeepAliveSeconds(10);
        *//** 线程池维护线程的最大数量*//*
        threadPoolTaskExecutor.setMaxPoolSize(10);
        *//**线程池所使用的缓冲队列*//*
        threadPoolTaskExecutor.setQueueCapacity(10);

        return threadPoolTaskExecutor;

    }*/
}
